package cc.messcat.service.log;

import cc.messcat.common.model.Pager;
import cc.messcat.common.service.BaseService;
import cc.messcat.entity.log.Log;
import cc.messcat.entity.system.McUser;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.util.Date;
import java.util.List;

public interface LogService extends BaseService<Log>{

	void addlog(Log log);
	
	Pager<Log> getPagerfindAllList(int pageNo, int pageSize);

	/**
	 * 日志条件查询
	 * @author Fog
	 */
	Pager<Log> listLog(McUser user, Integer pageNo, Integer pageSize, Log log,String start, String end);

	/**
	 * 日志条件删除
	 * @author Fog
	 */
	void removeLog(McUser user, Log log,String ids, Date start, Date end);

	/**
	 * 日志条件导出
	 * @author Fog
	 */
	HSSFWorkbook exportLog(McUser user, Integer pageNo, Integer pageSize, Log log, String start, String end);

	/**
	 * 获取备份日志
	 * @param origin
	 * @param derivation
	 * @return
	 */
	List<Log> getBackupInfo(Integer origin, Integer derivation);
}
